#include "conicPath.hpp"

conicPath::conicPath()
{
	vertices.setPrimitiveType(sf::LinesStrip);
}

void conicPath::draw(sf::RenderTarget& target, sf::RenderStates states) const
{
	// apply the entity's transform -- combine it with the one that was passed by the caller
	states.transform *= getTransform(); // getTransform() is defined by sf::Transformable

	// draw the vertex array
	target.draw( vertices, states);
}

sf::Vertex& conicPath::operator[] ( unsigned int index )
{
	return(vertices[index]);
}

void conicPath::clear()
{
	vertices.clear();
}

void conicPath::append(sf::Vertex invert)
{
	invert.color = screen::ORBITCOL;
	vertices.append(invert);
}
